package io.persimmon.springboot.runtime;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class SpringRunTime {
    @Value("${spring.profiles.active:dev}")
    private String profile;

    public RunTimeMode currentRunTimeMode() {
        return RunTimeMode.valueOf(profile);
    }
}
